package p2shapesv3;

public class UseShapes {

	public static void main(String[] args) {
		// not allow: Shape is abstract.
		// Shape s = new Shape();

		Circle c = new Circle();
		System.out.println(" Circle c has: " + c);

		Rectangle r = new Rectangle( 10, 20 );
		// legal or not? r.length = 3;
		// legal or not? r.width  = 5;
		System.out.println(" Rectangle r has: " + r);
		Square sq = new Square( 100 );
		// legal or not? sq.length = 3;
		// legal or not? sq.width  = 5;
		System.out.println(" Square sq has: " + sq);
	}

}
